export enum Language {
  zh_cn = 'zh-cn',
  zh_TW = 'zh-tw',
  en_US = 'en',
  en_GB = 'en-gb',
}

export type LANGUAGE_KEY = keyof typeof Language;

export interface Languages {
  locale: Language;

  [key: string]: any;
}

export interface LanguageType {
  [Language.zh_cn]: string;
  [Language.zh_TW]: string;
  [Language.en_GB]: string;
  [Language.en_GB]: string;
}

export interface LanguageNode {
  fullPath: string;
  languages: Partial<LanguageType>;
  key: string;
  parent: LanguageNode | null;
  children: LanguageNode[];
}
